home *** CD-ROM | disk | FTP | other *** search
- /* Filename: "c_comp.c" */
- /**********************************************************************/
- /* Name: c_comp */
- /* Parameter: c1 (char), c2 (char) */
- /* Return value: 1 (TRUE), 0 (FALSE) */
- /* Function: Compares two characters */
- /* Other: requires two characters () */
- /**********************************************************************/
- #define FALSE 0
- #define TRUE 1
- extern int grklflag;
-
- c_comp(c1,c2)
- register char c1,c2;
- {
- if (c1 == c2) return(TRUE);
- if( grklflag && letter(c1) && letter(c2))
- if((c1 + 'a' - 'A' == c2)||(c2 + 'a' - 'A' == c1)) return(TRUE);
- return(FALSE);
- }
-
-
-